#include <WiFi.h>
#include <WiFiManager.h>
#include "my_tft.hpp"
#include "weather_api.hpp"
#include "display.hpp"
#include "wifi_status.hpp" 
#include "udp_receiver.hpp" 
#include "bme280_sensor.hpp"
const uint16_t udpPort = 1234;
WiFiManager wm;
/* ---------- ⑤ SETUP / LOOP ---------- */
void setup() {
  Serial.begin(115200);
  tft_init();

  wm.autoConnect("ESP32-S3-ConfigR");  // 启动 WiFi热点，用户名为 "ESP32-S3-ConfigR"
  checkWiFi();

  initUDP(udpPort);
  initweather();
}

void loop() {
  updateWeather();
  updateUDP();
}
